<link rel="stylesheet" type="text/css" href="<?=gurl('css');?>/home.css" />
<div class="login">
<? if($account):?>
<a href="/home/profile/<?=$account["account_id"];?>"><?=$account["account_username"];?></a><a href="<?=gurl('accounts/logout');?>">退出</a><a href="<?=gurl('about/contact');?>">建议</a>
<? else:?>
<a href="<?=gurl('accounts/');?>">登录</a><a href="<?=gurl('accounts/');?>">注册</a><a href="<?=gurl('about/contact');?>">建议</a>
<? endif;?>
</div>
<div class="w960">
	<div class="w660">
		<div class="smallCon">
			<h1><a id="top" name="top">&nbsp;</a><?=$userinfo["username"];?>的个人主页</h1>
			<ul class="listEdit">
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/account/<?=$userinfo["id"];?>">个人设置</a></li>
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/profile/<?=$userinfo["id"];?>">我的轻站</a></li>
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/topic/<?=$userinfo["id"];?>">我的话题</a></li>
				<li class="sel"><a href="/home/inbox/<?=$userinfo["id"];?>">我的邮箱</a></li>
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/comment/<?=$userinfo["id"];?>">回应我的</a></li>
			</ul>
			<div class="blank8"></div>					
			<div class="mailTop">
				<ul class="left">
					<li><a href="/home/inbox/<?=$userinfo["id"];?>">收件箱</a></li>
					<li class="sel"><a href="/home/outbox/<?=$userinfo["id"];?>">发件箱</a></li>
					<li><a href="/home/notice/<?=$userinfo["id"];?>">通知</a></li>
				</ul>
				<p><a href="javascript:checkall();">全选</a> <a href="javascript:clearall();">全不选</a> <a href="javascript:void(0);" onclick="delselected('<?=gurl('/home/delselectedout/'.$account['account_id']);?>');" class="del">删除</a></p>
			</div>
			<? if($lists):?>
			<div class="listMail">
				<dl>
				<dt>
					<span class="f_box"></span>
					<span class="l_box">标题</span>
					<span class="c_box">送往</span>
					<span class="r_box">时间</span>
					<div class="hackbox"></div>
				</dt>
				<? foreach ($lists as $list):?>
				<dd>
					<span class="f_box"><input name="id[]" id="id[]" type="checkbox" value="<?=$list['id'];?>" /></span>
					<span class="l_box"><a title="<?=$list["title"];?>" href="/home/showout/<?=$userinfo["id"];?>/<?=$list['id'];?>" <? if($list['isread']):?> class="cGray" <? endif;?>><?=msubstr($list["title"],0,22);?></a></span>
					<span class="c_box"><a href="/home/profile/<?=$list["toid"];?>"><?=$list["touser"];?></a></span>
					<span class="r_box"><?=date("Y-m-d H:i",$list["addtime"]);?></span>
				</dd>
				<? endforeach;?>
				</dl>
			</div>
			
			<div class="blank8"></div>
			<div class="allmark">
					<div class="right"><a href="#top" class="goTop cCGray">返回顶部</a></div>
				</div>
				<div class="blank8"></div>
				<div class="page">
                    <?=$pagestring;?>
                </div>
			<div class="hackbox"></div>
			<? endif;?>
		</div>
	</div>
	<script language="javascript" src="/home/right/<?=$userinfo['id'];?>"></script>
	<div class="hackbox"></div>
</div>